import request from '@/utils/request'

// 查询收银列表
export function listBarberShopBillings(query) {
  return request({
    url: '/billing/BarberShopBillings/list',
    method: 'get',
    params: query
  })
}

// 查询收银详细
export function getBarberShopBillings(billingID) {
  return request({
    url: '/billing/BarberShopBillings/' + billingID,
    method: 'get'
  })
}

// 新增收银
export function addBarberShopBillings(data) {
  return request({
    url: '/billing/BarberShopBillings',
    method: 'post',
    data: data
  })
}

// 修改收银
export function updateBarberShopBillings(data) {
  return request({
    url: '/billing/BarberShopBillings',
    method: 'put',
    data: data
  })
}

// 删除收银
export function delBarberShopBillings(billingID) {
  return request({
    url: '/billing/BarberShopBillings/' + billingID,
    method: 'delete'
  })
}
